package com.maomao.aop.service;

import org.springframework.stereotype.Service;

/**
 * Created by admin on 2018/3/21.
 */
@Service
public class PersonSpring implements Speakable {
    @Override
    public void sayHi() {
        try {
            Thread.sleep(30);
        } catch (Exception e) {
            throw new RuntimeException();
        }
        System.out.println("Hi!!");
    }

    @Override
    public void sayBye() {
        try {
            Thread.sleep(10);
        } catch (Exception e) {
            throw new RuntimeException();
        }
        System.out.println("Bye!");
    }
}
